var phonecatApp=angular.module('phonecatApp');
function PhoneListController($scope){
    $scope.phones = [
        {
          name: 'Nexus S',
          snippet: 'Fast just got faster with Nexus S.',
          id:10
        }, {
          name: 'Motorola XOOM™ with Wi-Fi',
          snippet: 'The Next, Next Generation tablet.',
          id:12
        }, {
          name: 'MOTOROLA XOOM™',
          snippet: 'The Next, Next Generation tablet.',
          id:13
        }
      ];
}


phonecatApp.component("phoneList",{
    templateUrl:"/js/components/phone-list/phone-list.template.html",
    controller:["$scope",PhoneListController]
});

